/**
 * 
 */
package org.jenkon.commons.lang.decorator;

import org.jenkon.commons.lang.command.Command;

/**
 * <p>
 * Decorator to decorate a {@link Command} object.
 * </p>
 * 
 * @author Jens Konopka
 * 
 */
public abstract class CommandDecorator implements Command {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1249554725443441076L;

	private final Command command;

	/**
	 * @param command
	 *            {@link Command} to decorator
	 */
	public CommandDecorator(final Command command) {
		this.command = command;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.jenkon.command.Command#execute()
	 */
	public void execute(final Object context) throws Exception {
		command.execute(context);
	}

}
